//api文件仍保留但不建议使用，推荐使用models中的api。API files remain preserved (deprecated), use models APIs instead.
import type { AiClient, AiClientResponse } from './types.js';

import { requestClient } from '#/api/request';

export const getuctooAiClientList = async (page: number, pageSize: number,
  searchParams?: any) => {
  return requestClient.get<AiClientResponse>(`/uctoo/ai_client/${pageSize}/${page}`,{
    params: searchParams,
  });
};

export const getuctooAiClient = async (id: string) => {
  return requestClient.get<AiClient>(`/uctoo/ai_client/${id}`);
};

export const adductooAiClient = async (data: Partial<AiClient>) => {
  return requestClient.post<AiClient>('/uctoo/ai_client/add', data);
};

export const edituctooAiClient = async (data: Partial<AiClient>) => {
  return requestClient.post<AiClient>('/uctoo/ai_client/edit', data);
};

export const deleteuctooAiClient = async (id: string) => {
  return requestClient.post<any>('/uctoo/ai_client/del', { id });
};
